package com.it.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * (GmHobby)实体类
 *
 * @author makejava
 * @since 2022-07-27 16:21:21
 */
@Data
@JsonIgnoreProperties(value = "handler")
@TableName("gm_hobby")
public class Hobby implements Serializable {
    @TableId(value = "hid", type = IdType.AUTO)
    private Integer id;
    private String name;
    @TableField(exist = false)
    private List<User> users;
    private Integer userCount;
}

